package com.xyh.flowershop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyh.flowershop.domain.Cart;
import com.xyh.flowershop.vo.req.cart.CartEditReqVo;
import com.xyh.flowershop.vo.req.cart.CartPageReqVo;
import com.xyh.flowershop.vo.req.cart.UpdateCheckedReqVo;
import com.xyh.flowershop.vo.resp.cart.CartPageRespVo;

import java.util.List;
import java.util.Map;

/**
 * @author 小约翰可汗
 * @className CartService
 * @createTime 2024/5/420:42
 */
public interface CartService extends IService<Cart> {
    String addOrEditCart(CartEditReqVo vo);

    IPage<CartPageRespVo> findPageCarts(CartPageReqVo vo);

    Boolean deleteCarts(List<String> ids);

    CartPageRespVo findCart(String id);

    void addCacheCart(List<String> ids);

    List<CartPageRespVo> findCacheCarts();

    void updateChecked(UpdateCheckedReqVo map);
}
